package com.sailing.lianxi.design.prototype;

public class PrototypePatternDemo {

	public static void main(String[] args) {
		ShapeCache.loadCache();
		Shape cloneCirCle = ShapeCache.getShape("1");
		System.out.println("Shape:"+cloneCirCle.getType());
		
		Shape cloneRectangle= ShapeCache.getShape("2");
		System.out.println("Shape:"+cloneRectangle.getType());
	}
}
